<?php

namespace app\admin\model;

use app\admin\model\BaseModel;


class Attributor extends BaseModel
{

    protected $name = "attributor";
    protected $pk = "id";
    // 追加属性
    // protected $append = [
    //     'siteid_title',
    // ];
    protected $deleteTime = false;


    // public function getSiteidTitleAttr($value, $data)
    // {
    //     $value = $value ? $value : (isset($data['siteid']) ? $data['siteid'] : '');
    //     $admin = table('site')->where(['id' => $data['siteid']])->find();
    //     return isset($admin['site_url']) ? $admin['site_url'] : 'site_url';
    // }
}
